import request from '@/utils/request'
// 后台查询买车列表
export function getAdminSellBuyPage(query) {
    return request({
      url: '/admin/BuySellCar/getAdminSellBuyPage',
      method: 'get',
      params: query
    })
}


// 后台查询卖车列表
export function getAdminSellCarPage(query) {
    return request({
      url: '/admin/BuySellCar/getAdminSellCarPage',
      method: 'get',
      params: query
    })
}


// 下架
export function BuySellCarBelow(query) {
    return request({
      url: '/admin/BuySellCar/below',
      method: 'get',
      params: query
    })
}


// 上架
export function BuySellCarUp(query) {
    return request({
      url: '/admin/BuySellCar/up',
      method: 'get',
      params: query
    })
}



// 查询销售公司列表
export function AutomobileMarketList(query) {
    return request({
      url: '/admin/AutomobileMarket/list',
      method: 'get',
      params: query
    })
}


// 查询销售公司详情
export function AutomobileMarketInfo(query) {
    return request({
      url: '/admin/AutomobileMarket/getInfo',
      method: 'get',
      params: query
    })
}


// 新增销售公司
export function AutomobileMarketSave(data) {
    return request({
      url: "/admin/AutomobileMarket/save",
      method: "post",
      data,
    });
  }

  
// 修改销售公司
export function AutomobileMarketUpdate(data) {
    return request({
      url: "/admin/AutomobileMarket/update",
      method: "post",
      data,
    });
  }


// 删除销售公司
export function AutomobileMarketDelete(data) {
    return request({
      url: "/admin/AutomobileMarket/delete",
      method: "post",
      data,
    });
  }


// 通过
export function AutomobileMarketPass(query) {
    return request({
      url: '/admin/AutomobileMarket/pass',
      method: 'get',
      params: query
    })
}

// 拒绝
export function AutomobileMarketRefuse(query) {
    return request({
      url: '/admin/AutomobileMarket/refuse',
      method: 'get',
      params: query
    })
}


// 置顶
export function AutomobileMarketTop(query) {
    return request({
      url: '/admin/AutomobileMarket/top',
      method: 'get',
      params: query
    })
}

// 取消置顶
export function AutomobileMarketCancelTop(query) {
    return request({
      url: '/admin/AutomobileMarket/cancelTop',
      method: 'get',
      params: query
    })
}


// 下架
export function below(query) {
  return request({
    url: '/admin/BuySellCar/below',
    method: 'get',
    params: query
  })
}


// 上架
export function up(query) {
  return request({
    url: '/admin/BuySellCar/up',
    method: 'get',
    params: query
  })
}


// 买卖车日志
export function BuySellCarLog(query) {
  return request({
    url: '/admin/BuySellCarLog/list',
    method: 'get',
    params: query
  })
}


// 新增卖车
export function saveAdminIssue(data) {
  return request({
    url: '/admin/BuySellCar/saveAdminIssue',
    method: 'post',
    data
  })
}